import { View } from "@tarojs/components";
import { Component, Fragment } from "react";
import './index.scss';

interface FreeTitleProps {
    freetitle: string | any,
    freeClass?:string
}

class FreeTitle extends Component<FreeTitleProps> {
    constructor(props) {
        super(props)
    }

    render() {

        return (
            <Fragment>

                <View className="item_xin">
                    <View className={["buttns",this.props.freeClass].join(' ')}>赠品</View>
                    <View className="texts">{this.props.freetitle}</View>
                </View>
            </Fragment>
        )
    }
}

export default FreeTitle;